﻿using IM.Easy.Entity.Log;
using IM.Easy.Infrastructure.Query;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.LogServices.Dtos
{
    /// <summary>
    /// 错误日志查询实体
    /// </summary>
    public class ExceptionLogQueryDto : QueryBase
    {
        /// <summary>
        /// 异常消息
        /// </summary>
        public string Msg { get; set; }

        /// <summary>
        /// 异常类型
        /// </summary>
        public ExceptionEnum? Type { get; set; }

        /// <summary>
        /// 异常时间开始
        /// </summary>
        public DateTime? BeginTime { get; set; }
        /// <summary>
        /// 异常时间结束
        /// </summary>
        public DateTime? EndTime { get; set; }

    }


    public class ExceptionLogDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 异常时间
        /// </summary>
        public DateTime Time { get; set; }

        /// <summary>
        /// 异常消息
        /// </summary>
        public string Msg { get; set; }

        /// <summary>
        /// 堆栈跟踪
        /// </summary>
        public string Trace { get; set; }

        /// <summary>
        /// 追踪id
        /// </summary>
        public string TraceIdentifier { get; set; }

        /// <summary>
        /// 附加信息
        /// </summary>
        public string Info { get; set; }

        /// <summary>
        /// 异常类型
        /// </summary>
        public ExceptionEnum Type { get; set; }

        /// <summary>
        /// 追踪信息
        /// </summary>
        public RequestTrackingLogDto TraceInfo { get; set; }
    }
}
